package org.example.designPattern.structural.composite;

public class Employees {
    private String name;
    private String pla;
    private double Salary;

    public Employees(String name, String pla, double salary) {
        this.name = name;
        this.pla = pla;
        Salary = salary;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPla() {
        return pla;
    }

    public void setPla(String pla) {
        this.pla = pla;
    }

    public double getSalary() {
        return Salary;
    }

    public void setSalary(double salary) {
        Salary = salary;
    }

    @Override
    public String toString() {
        return "Employees{" +
                "name='" + name + '\'' +
                ", pla='" + pla + '\'' +
                ", Salary=" + Salary +
                '}';
    }
}
